package com.xsomnus.rpc.common.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * @author @xsomnus666_xiawenye★
 * @since 2019/4/18 0018 13:33
 * 当你发现自己的才华撑不起野心时，就请安静下来学习吧
 */
@Data
@ConfigurationProperties(prefix = "zookeeper")
public class ZookeeperProperties {

    private String server;

    private String namespace;

    private String digest;

    private Integer sessionTimeoutMs = 60 * 1000;

    private Integer connectionTimeoutMs = 6 * 1000;

    private Integer maxRetries = 3;

    private Integer baseSleepTimeMs = 3000;

}
